﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExplodingCow.Basilisk.Logic
{
    /// <summary>
    /// Class for getting Items from
    /// </summary>
    public class ItemFactory
    {
        /// <summary>
        /// private static instance for singleton
        /// </summary>
        private static ItemFactory instance;

        /// <summary>
        /// private constructor for singleton access
        /// </summary>
        private ItemFactory()
        { 
        
        }
        /// <summary>
        /// Get a an ItemFactory or the existing instance
        /// </summary>
        /// <returns>static instance of ItemFactory singleton </returns>
        public static ItemFactory GetItemFactory()
        {
            if (instance == null)
            {
                instance = new ItemFactory();
            }
            return instance;
        }
        /// <summary>
        /// Create an Item
        /// </summary>
        /// <returns>a new instance of an empty item</returns>
        public Item Create()
        {
            return new Item();
        }
    }
}
